// vite.config.js
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///E:/Working%20file/tybbb/tyb/node_modules/vite/dist/node/index.js";
import Vue from "file:///E:/Working%20file/tybbb/tyb/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import VueDevTools from "file:///E:/Working%20file/tybbb/tyb/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
import Autoimport from "file:///E:/Working%20file/tybbb/tyb/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/Working%20file/tybbb/tyb/node_modules/unplugin-vue-components/dist/vite.js";
var __vite_injected_original_import_meta_url = "file:///E:/Working%20file/tybbb/tyb/vite.config.js";
var vite_config_default = defineConfig({
  plugins: [
    Vue(),
    // VueDevTools(),
    Autoimport({
      imports: ["vue", "vue-router", "pinia", "@vueuse/core"]
    }),
    Components({
      dirs: ["src/components/*"]
    })
  ],
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `@import "@/assets/styles/main.scss";`
      }
    }
  },
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  },
  server: {
    port: 5678,
    host: "0.0.0.0",
    proxy: {
      "/api": {
        target: "https://dzzj.yjsrpz.com/api/",
        //目标url
        changeOrigin: true,
        //支持跨域
        rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxXb3JraW5nIGZpbGVcXFxcdHliYmJcXFxcdHliXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJFOlxcXFxXb3JraW5nIGZpbGVcXFxcdHliYmJcXFxcdHliXFxcXHZpdGUuY29uZmlnL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